//
//  UserRulesResModel.swift
//  koolcar
//
//  Created by xiantian on 2023/11/8.
//

import UIKit
import ObjectMapper

class UserRulesResModel: Mappable {
    var code : String?
    var data : [UserRulesDataModel]?
    var msg : String?
    func mapping(map: Map) {
        code <- map["code"]
        data <- map["data"]
        msg <- map["msg"]
    }
    required init?(map: Map) {
        
    }
}
class UserRulesDataModel: Mappable {
    var articleCategoryId : Int?
    var author : String?
    var code : String?
    var content : String?
    var createdTime : String?
    var hits : Int?
    var id : Int?
    var imageUrl : String?
    var isPublication : Int?
    var isTop : Int?
    var title : String?
    var titleEn : String?
    var titleSc : String?
    
    func mapping(map: Map) {
        articleCategoryId <- map["articleCategoryId"]
        author <- map["author"]
        code <- map["code"]
        content <- map["content"]
        createdTime <- map["createdTime"]
        hits <- map["hits"]
        id <- map["id"]
        imageUrl <- map["imageUrl"]
        isPublication <- map["isPublication"]
        isTop <- map["isTop"]
        title <- map["title"]
        titleEn <- map["titleEn"]
        titleSc <- map["titleSc"]
        
    }
    required init?(map: Map) {
        
    }
}
